package com.ly.user_system.controller;

import com.ly.user_system.base.BaseController;
import com.ly.user_system.detail.BaseSysUserDetail;
import com.ly.user_system.dto.UserLoginDto;
import com.ly.user_system.req.UserLoginReq;
import com.ly.user_system.service.BaseSysUserService;
import org.springframework.web.bind.annotation.*;


/**
 * @author HASEE
 */
@RestController
@RequestMapping("/BaseSysUsers")
public class BaseSysUserController extends BaseController<BaseSysUserService> {


    @PostMapping("/login")
    public UserLoginDto login(@RequestBody UserLoginReq req) {
        return baseService.login(req);
    }


    @GetMapping
    public BaseSysUserDetail selfDetail() {
        return baseService.getSelfDetail();
    }



}